#include <iostream>
#include <cmath>


using namespace std;

/**
 * https://www.luogu.com.cn/problem/P1014
 */
int main() {
    int N = 7;

    int M = (int)(-1+sqrt(1+4*1*(2*N)))/2;

    int sum = M * (M + 1) / 2;

    if(N==sum) {
        if (M % 2 == 1) {
            cout << 1 << "/" << M;
        }else {
            cout << M << "/" << 1;
        }
        return 0;
    }

    //剩下循环的次数
    int left = N - sum - 1;

    if (M % 2 == 1) {
        int fenzi = 1;
        int fenmu = M + 1;
        for (int i = 0; i < left; i++) {
            fenzi++;
            fenmu--;
        }
        cout << fenzi << "/" << fenmu;
    }else {
        int fenzi = M + 1;
		int fenmu = 1;
        for(int i = 0; i < left; i++) {
			fenzi--;
			fenmu++;
		}
		cout << fenzi << "/" << fenmu;

    }

    return 0;
}